<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.front.servlets.financial.QrdzSell"%>
<%@page import="com.blockchain.front.servlets.financial.UpdatePdd"%>
<%@page import="com.blockchain.front.servlets.financial.UpdateGd"%>
<%@page import="com.blockchain.front.service.common.entity.GdEntity"%>
<%@page import="com.blockchain.front.service.financial.GdManage"%>
<%@page import="com.blockchain.common.enums.GdState"%>
<%@page import="com.blockchain.front.servlets.financial.Wygd"%>
<%@page import="java.text.DecimalFormat"%>
<%@page import="com.blockchain.util.http.URLParameter"%>
<%@page import="com.blockchain.front.service.AbstractFrontService"%>
<%@page import="com.blockchain.front.servlets.AbstractFrontServlet"%>
<%@page import="com.blockchain.front.service.financial.entity.JlEntity"%>
<%@page import="com.blockchain.common.enums.JyztStatus"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "eurRecharge_eurRecharge");
String _TITLE_ = str + "- "+configureProvider.getProperty(SystemVariable.SITE_NAME);
CURRENT_SUB_CATEGORY="RMBCZ";
PC_TITLE_NAME="RMBCZ";
URLParameter parameter = new URLParameter(request,controller.getViewURI(request,Wygd.class));
GdEntity gdEntity = (GdEntity)request.getAttribute("gdEntity");
GdEntity[] pdson = (GdEntity[])request.getAttribute("pdson");
%> 
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<div class="autobox">
    <div class="now">
         <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a> &gt; <a href="<%=controller.getViewURI(request,com.blockchain.front.servlets.financial.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_financeCenter")%> </a> &gt; <%=languageDefine.getValue(request, "eurRecharge_eurRecharge")%>
    </div>
    <div class="assets_center clear po_re zin70">
        <!--左侧菜单-->
        <div class="coin_menu">
    <div class="coin_menu_box">
        <ul>
            <li id="finance_index"><i class="coin_menu_op_0_1"></i>挂单详情</li>
        </ul>
    </div>
     <%@include file="/WEB-INF/include/financial/left.jsp"%>	
</div>
        <!--右侧内容-->
        <div class="assets_content w900 right bg_w">
            <div class="safe_center clear" style="padding-left: 0px;">
                <h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;" href="#tab1">挂单详情</h1>
           <form action="<%=controller.getURI(request, UpdateGd.class)%>" method="post" id="form" >
            <div class="choosepaymethod">
                <div class="choosebanks"  id="JKDiv_1">
                    <div id="czxx" class="methodway clearfix" style="padding-top:18px;display:block;" >
                    	<div class="w_div clearfix">
                            <div class="w1">挂单总量：</div>
                            <div class="w2"><%=Formater.formatAmount(gdEntity.gdsl)%></div>
                            <div class="w1">剩余数量：</div>
                             <div class="w2"><%=Formater.formatAmount(gdEntity.sysl)%></div>
                        </div>
                        <div class="w_div clearfix">
                        	<div class="w1">最小成交：</div>
                             <div class="w2"><%=Formater.formatAmount(gdEntity.zxcjsl)%></div>
                            <div class="w1">单价：</div>
                             <div class="w2"><%=Formater.formatAmount(gdEntity.gddj)%></div>
                        </div>
                        <div class="w_div clearfix">
                            <div class="w1">支付方式：</div>
                            <div class="w2"><% StringHelper.filterHTML(out, gdEntity.zfType.getName());%></div>
                            <div class="w1">收款账号：</div>
                            <div class="w2"><%StringHelper.filterHTML(out, gdEntity.skzh);%></div>
                        </div>
                        <div class="w_div clearfix">
                            <div class="w1">联系电话：</div>
                            <div class="w2"><%StringHelper.filterHTML(out, gdEntity.lxdh);%></div>
                            <div class="w1">挂单状态：</div>
                            <div class="w2"><% StringHelper.filterHTML(out, gdEntity.gdState.getName());%></div>
                        </div>
                        <div class="w_div clearfix">
                        	<input type="hidden" name="id" value="<%=gdEntity.id%>">
                        	 <div class="w1">挂单时间：</div>
                            <div class="w2"><%=DateTimeParser.format(gdEntity.gdsj,"yyyy-MM-dd HH:mm")%></div>
                        </div>
                        </div>
                        <div class="w_div clearfix"  style="padding-left:220px">
                            <div class="w1">
                            	<a href="<%=controller.getURI(request, Wygd.class)%>"><input type="button"  class="btn-cztx" id="btn-submit" value='返回' title='返回' style="border-radius: 8px;"></a>
                            </div>
                            <% if(gdEntity.sysl.compareTo(BigDecimal.ZERO)>0){%>
                            <div class="w2">
                            	<input type="hidden" name="gdState" value="YQX">
                                <input type="button"  class="btn-cztx" id="btn-submit" value='取消剩余挂单' title='取消剩余挂单' onclick="Update();" style="border-radius: 8px;">
                            </div>
                            <%}%>
                     </div>
                  </div>
                    <div id="dialog_ali" class="" style="width: 650px; overflow: visible; display:none;position:relative;">
                        <div class="mana-app-title" style="line-height: 34px;"><%=languageDefine.getValue(request, "rmbRecharge_onlineBankRemittance")%> 
                        <span id="wait" style="color:#e55600;">（<%=languageDefine.getValue(request, "rmbRecharge_unpaid")%>）</span>
                        </div>
                        <div style="clear: both"></div>
                        <div class="pay_con">
                            <span></span>
                        </div>
                    </div>
                </div>
                </form>
       		 </div>
       		 <div class="f_body">
                    <table class="f_table" id="investLog_content">
                        <thead>
                        <tr>
                        	<th width=""><%=languageDefine.getValue(request,"financial_lsh")%></th>
                        	<th width="">拍单时间</th>
                            <th width="">拍单数量</th>
                            <th width="">拍单人姓名</th>
                            <th width="">拍单人电话</th>
                            <th width=""><%=languageDefine.getValue(request,"financial_gddj")%></th>
                            <th width="">拍单总价</th>
                            <th width="">状态</th>
                            <th width="">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                  <%if(pdson!=null){for(GdEntity s:pdson){ if(s.pdState!=GdState.JYCG){%> 
            <tr>
            	<td><%=s.id%></td>
                <td><%=DateTimeParser.format(s.pdsj,"yyyy-MM-dd HH:mm")%></td>
                <td><%=Formater.formatAmount(s.pdsl)%></td>
                <td><%StringHelper.filterHTML(out, s.pdrxm);%></td>
                <td><%StringHelper.filterHTML(out, s.pdrdh);%></td>
                <td><%=Formater.formatAmount(s.gddj)%></td>
                <td><%=Formater.formatAmount(s.gddj.multiply(s.pdsl))%></td>
                <td><%=backgroundDataFlag==2?s.pdState.getName():backgroundDataFlag==1?s.pdState.getNameEn():s.pdState.getNameTw()%></td>
                <td><a href="<%=controller.getURI(request, QrdzSell.class)%>?id=<%=s.pdid%>">确认到账</a></td>
            </tr>
            <%}}}%>
                  </tbody>
                    </table>
                </div>
            </div>
    </div>
</div>

<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
	function Update() {
        $("#form").submit(); 
	}
	   
	function myczHuikuan(){
		$("#dialog_ali").hide();
		$("#czxx").show();	
	}
	
	
<%String error = controller.getPrompt(request,response,PromptLevel.ERROR);if(!StringHelper.isEmpty(error)){%>
	layer.open({
	title: '<%=languageDefine.getValue(request, "js_tip")%>',
	content: '<%=languageDefine.getValue(request,error)%>'
});  
<%}%>

<%String info = controller.getPrompt(request,response,PromptLevel.INFO);if(!StringHelper.isEmpty(info)){%>
$("#dialog_ali").show();
$("#czxx").hide();
<%}%>

</script>
</body>
</html>	
	
